package com.hotau.push;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.hotau.util.PreferencesUtils;

public class BootBroadcastReceiver extends BroadcastReceiver {
	 private static final String TAG = "BootBroadcastReceiver";
	 @Override
	 public void onReceive(Context context, Intent intent) {
		 String value = PreferencesUtils.getReceive(context);
		 if (PreferencesUtils.VALUE_PUSH_ON.equals(value)) {
			  Intent service = new Intent(context, PushService.class);
			  context.startService(service);
			  Log.v(TAG, "开机自动启动！");
		 }
	 }
}
